package org.rsbot.event.impl;

import java.awt.Graphics;
import org.rsbot.bot.Bot;
import org.rsbot.event.listeners.TextPaintListener;
import org.rsbot.script.methods.MethodContext;
import org.rsbot.script.methods.Players;
import org.rsbot.script.wrappers.RSPlayer;
import org.rsbot.script.wrappers.RSTile;
import org.rsbot.util.StringUtil;

public class TPlayerPosition
  implements TextPaintListener
{
  private Players players;

  public TPlayerPosition(Bot paramBot)
  {
    this.players = paramBot.getMethodContext().players;
  }

  public int drawLine(Graphics paramGraphics, int paramInt) {
    RSTile localRSTile = this.players.getMyPlayer().getLocation();
    StringUtil.drawLine(paramGraphics, paramInt++, "Position: " + localRSTile);
    return paramInt;
  }
}